import 'dart:convert';
import 'paging_datas.g.dart';

class PagingDatas<T> {
  int? pageNum;
  bool? hitCount;
  int? pages;
  List<T>? list;
  bool? searchCount;
  int? size;
  int? total;

  PagingDatas();

  factory PagingDatas.fromJson(Map<String, dynamic> json) =>
      $PagingDatasFromJson<T>(json);

  Map<String, dynamic> toJson() => $PagingDatasToJson(this);

  @override
  String toString() {
    return jsonEncode(this);
  }
}
